import React from 'react'
import {createBrowserRouter} from 'react-router-dom'
const Lay=React.lazy(()=>import('../page/layout/Layouts'))
const Index=React.lazy(()=>import('../page/home/Index'))
const VR=React.lazy(()=>import('../page/vr/VR'))
const View=React.lazy(()=>import('../page/View/View'))
const  Chat=React.lazy(()=>import('../page/chat/index'))
const Host=React.lazy(()=>import('../page/host/Host'))
const Login=React.lazy(()=>import('../page/login/Login'))
const routes=createBrowserRouter([{
    path:"/lay",
  element: <Lay/>
 },{
      path:"/",
  element: <Login/>
 },{
 path:"/vr",
  element:  <VR/>
},{
  path:'/view',
  element:<View/>

},{
  path:'/home',
  element:<Index/>
},{
   path:'/chat',
  element:<Chat/>
},{
    path:'/host',
  element:<Host/>
}
])
export default routes